import { request } from 'ice';

export default {
  /**
   * 获取工作节点数据
   */
  async getNodes(params) {
    return await request.post('/getNodes', params);
  },

  async addNodes(values) {
    return await request.post('/addNodes', values);
  },

  async deleteNode(id) {
    return await request.post('/deleteNode', { id });
  },

  async getSetting() {
    return await request.post('/getSetting');
  },

  async saveSetting(setting) {
    return await request.post('/addNodes', setting);
  }

}